import string

from Tkinter import *

import tkFileDialog
import tkSimpleDialog


class DimentionsDialog(tkSimpleDialog.Dialog):
    
    def body(self, master):
        self.inputsFrame = Frame(master)
        self.inputsFrame.grid(pady=4)
        
        Label(self.inputsFrame, text = "Columns:").grid(row=0)
        Label(self.inputsFrame, text = "Rows:").grid(row=1)
        self.columns = Entry(self.inputsFrame, width=10)
        self.rows = Entry(self.inputsFrame, width=10)
        self.columns.grid(row=0, column=1)
        self.rows.grid(row=1, column=1)
                
        return self.columns

    def apply(self):
        columns = self.columns.get()
        rows = self.rows.get()      
        self.result = (columns, rows)
       

